package com.xf.filter;

/**
 * @ClassName MethodTime
 * @Deseription TODO
 * @Author fx
 * @Date 2021/4/30 0030 22:49
 * @Version 1.0
 **/
public class MethodTime {
    /**
     * 方法名称
     */
    private String methodName;
    /**
     * 方法开始时间
     */
    private long methodStartTimeMill;
    /**
     * 方法结束时间
     */
    private long methodEndTimeMill;
    /**
     * 方法耗时
     */
    private long methodDuration;

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public long getMethodStartTimeMill() {
        return methodStartTimeMill;
    }

    public void setMethodStartTimeMill(long methodStartTimeMill) {
        this.methodStartTimeMill = methodStartTimeMill;
    }

    public long getMethodEndTimeMill() {
        return methodEndTimeMill;
    }

    public void setMethodEndTimeMill(long methodEndTimeMill) {
        this.methodEndTimeMill = methodEndTimeMill;
    }

    public long getMethodDuration() {
        return methodDuration;
    }

    public void setMethodDuration(long methodDuration) {
        this.methodDuration = methodDuration;
    }

    @Override
    public String toString() {
        return "MethodTime{" +
                "methodName='" + methodName + '\'' +
                ", methodStartTimeMill=" + methodStartTimeMill +
                ", methodEndTimeMill=" + methodEndTimeMill +
                ", methodDuration=" + methodDuration +
                '}';
    }
}
